This program will take a VB module, a .FRM or a .BAS, and go through the module, locating the subs and functions. It will identify the locally-declared variables in the subs and functions and will find the locally-declared variables that are NOT USED in the subs and functions in which they reside. That will allow you to delete the variable declaration line (after you CONFIRM that the variable isn't referenced in the sub or function by using the Find tool, of course). There are a few bugs in the program -- sometimes the variables listed aren't listed for the correct sub or function they're one sub off on the list, sometimes when reading a module, many lines are taken in on one input statement, and a line like ""Dim x, y as integer"" won't register the y as a variable